  This folder contains complete code installation instructions as well as all necessary files. Copy this folder to Desktop and follow the instructions given below in the text
  The code has been tested on Arduino IDE ver 1.8.16. First you need to download this version of the arduino IDE on this page: https://www.arduino.cc/en/software/OldSoftwareReleases. OR, Also In this folder there is a downloaded version of Arduino IDE ver. 1.8.16  which you can use (The folder name is "arduino IDE"). There is also a folder named "Libraries". This folder contains 5 libraries needed to compile the code. In order to compile the code without errors, it is necessary to install exactly these given libraries
    1. Copy these 5 libraries to the folder : Arduino IDE -> Libraries .
 
    2. Important note: If you have previously installed some version of the Arduino IDE and libraries on the computer on which you are working on this project, you should do this procedure: Go to This PC-> Documents-> Arduino-> Libraries. If there is a library in this folder with the same name as the 5 libraries I mentioned before, you should delete it.

    3. Next let's install ESP32 support for the Arduino IDE. For this purpose, we go to the Arduino IDE and launch the Arduino application. Now we go to File - Preferences and in the field "Additional boards manager URL" we put the following link: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
 and press OK. Next in Tools->Board->Boards manager- we write "ESP32" in the empty field. Below it will appear ESP32 by Espressif Systems. Now VERY IMPORTANT : we need to select version 2.0.4 and press Install. If we previously installed another version, we should select this version (2.0.4) and press install. This is important so that there are no compilation errors. When the installation is finished we go to Tools-> Board-> ESP32 Arduino-> ESP32 Dev Module. Now in the ESP32 Dev Module options we need to set the "Erase All Flash Before Sketch Upload" option to "Enabled".(only if you have this option).

   4. Next we need to install "ESP32 sketch data upload" option. Next we need to install ESP32 sketch data upload. For this purpose we go to This Pc-> Documents-> Arduino. Here we create a new folder named "Tools". Now inside the Tools folder we copy the ESP32FS folder which you can find below this text. Now we restart the Arduino IDE, and if we have done everything correctly, a new field titled "ESP32 Sketch Data Upload" should appear in "Tools"

  5. Now we can start the installation: In the Arduino IDE we go to File-> Open -> Desktop then we select the "Instructions and code" folder, then in "Detailed code installation instructions" we go to "Code V1.5", then to " code_edit_delete" folder, we select "code_edit_delete.ino". Now the code will appear in the Arduino IDE editor. We press the Compile button and if we previously installed everything as explained, after a certain time the compilation should finish without errors (Done Compiling). 

  6. Next, with a USB C-Type to USB-A cable, we connect the CrowPanel 2.8"-ESP32 HMI 320x240 Display (By the way, I think you can also use CrowPanel 2.4"-ESP32 HMI 320x240 SPI TFT LCD Touch without any changes in the code and installation procedure) to the PC, and in Arduino IDE -> Tools -> Port we need to select the appropriate COM port (CH340) that is created when connecting the display module. After that we need to press UPLOAD button and wait until sketch is uploaded, and device reseted on first screenesonance Therapy Device".

  7. Now we go to Arduino IDE->Tools-> and click on the field "ESP32 Sketch Data Upload". This procedure will end with the message "SPIFFS Image Uploaded". Again wait to device reset to start screen.

  8. After the upload is complete, the "Bioresonance Therapy Device" start screen should appear. If there is a black screen for a long time, we need to briefly press the RESET button, after which the start screen will appear. By touching the Start screen, the disease selection menu is entered.You can notice that there is only one ZAPPER option and actually in this initial state the device should be sold. The other diseases are entered by the user himself through the web interface. You only need to test that the web interface is functional.

  9. For this purpose, the PC or laptop on which we will perform the test must have a WiFi adapter. Or even simpler, a mobile phone can be used. We scan the existing WiFi networks and select the ESP32-RIFE-AP, then connect to it with the password 12345678. If you fail to connect, try to remove the USB-C cable and press the RESET button, then turn on the device again with The USB-C cable. After you connect, wait a minute or two, and then in Google Chrome or any other browser enter 192.168.4.1 in the address field and press enter.









